package com.he.duitesmodel.hander.concretehander;

import com.he.duitesmodel.hander.LeaveRequest;

public class DirectorHander extends LeaveRequest {
    @Override
    public void handerLeave(int leaveDays) {
        if (leaveDays <= 2) {
            System.out.println("总监批准");
        } else if (leaveDays > 2) {
            System.out.println("总监不能审批，下一级");
            leaveRequest.handerLeave(leaveDays);
        }
    }
}
